import request from '@/utils/request'

export function loadAll(data) {
	return request({
		url: '/department',
		method: 'post',
		data
	})
}
export function update(data) {
	return request({
		url: '/department',
		method: 'put',
		data
	})
}
export function deleted(id) {
	return request({
		url: '/department/'+id,
		method: 'delete',
	})
}
export function add(data) {
	return request({
		url: '/department',
		method: 'put',
		data
	})
}
export function deleteAll(data) {
	return request({
		url: '/department/deleteAll',
		method: 'delete',
		data
	})
}
export function selAllMan() {
	return request({
		url: '/department/selAllMan',
		method: 'get',
	})
}
